|  | @@ -4,6 +4,8 @@ import (
 | 
											
												
													
														|  |  	"bytes"
 |  |  	"bytes"
 | 
											
												
													
														|  |  	"io"
 |  |  	"io"
 | 
											
												
													
														|  |  	"net"
 |  |  	"net"
 | 
											
												
													
														|  | 
 |  | +	"net/http"
 | 
											
												
													
														|  | 
 |  | +	"time"
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  	"v2ray.com/core/common/alloc"
 |  |  	"v2ray.com/core/common/alloc"
 | 
											
												
													
														|  |  	"v2ray.com/core/common/loader"
 |  |  	"v2ray.com/core/common/loader"
 | 
											
										
											
												
													
														|  | @@ -159,6 +161,9 @@ func (this HttpAuthenticator) GetServerWriter() *HeaderWriter {
 | 
											
												
													
														|  |  	for _, h := range headers {
 |  |  	for _, h := range headers {
 | 
											
												
													
														|  |  		header.AppendString(h).AppendString(CRLF)
 |  |  		header.AppendString(h).AppendString(CRLF)
 | 
											
												
													
														|  |  	}
 |  |  	}
 | 
											
												
													
														|  | 
 |  | +	if !config.HasHeader("Date") {
 | 
											
												
													
														|  | 
 |  | +		header.AppendString("Date: ").AppendString(time.Now().Format(http.TimeFormat)).AppendString(CRLF)
 | 
											
												
													
														|  | 
 |  | +	}
 | 
											
												
													
														|  |  	header.AppendString(CRLF)
 |  |  	header.AppendString(CRLF)
 | 
											
												
													
														|  |  	return &HeaderWriter{
 |  |  	return &HeaderWriter{
 | 
											
												
													
														|  |  		header: header,
 |  |  		header: header,
 |