expose the offset header in the response

This commit is contained in:
tim-kos 2013-05-10 13:56:17 +02:00
parent bed4d16c32
commit 6a1ca6a8ce
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ func main() {
w.Header().Add("Access-Control-Allow-Origin", "*")
w.Header().Add("Access-Control-Allow-Methods", "HEAD,GET,PUT,POST,PATCH,DELETE")
w.Header().Add("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Content-Disposition, Final-Length, Offset")
w.Header().Add("Access-Control-Expose-Headers", "Location, Range, Content-Disposition")
w.Header().Add("Access-Control-Expose-Headers", "Location, Range, Content-Disposition, Offset")
if r.Method == "OPTIONS" {
return