google app engine - AppEngine in Go not returning Content-Length from urlfetch.Head -
google app engine - AppEngine in Go not returning Content-Length from urlfetch.Head -
i trying perform head request url can content-length header , range requests.
however found out appengine doesn't homecoming content-length header when doing urlfetch.head. documentation explicit responses, not requests.
etag:["359670651"] expires:[thu, 16 oct 2014 20:41:52 gmt] server:[ecs (mdw/1275)] x-cache:[hit] x-ec-custom-error:[1] x-google-cache-control:[remote-fetch] accept-ranges:[bytes] cache-control:[max-age=604800] content-type:[text/html] date:[thu, 09 oct 2014 20:41:52 gmt] last-modified:[fri, 09 aug 2013 23:54:35 gmt] it works correctly when using net/http of go library.
last-modified:[fri, 09 aug 2013 23:54:35 gmt] server:[ecs (iad/182a)] content-length:[1270] accept-ranges:[bytes] cache-control:[max-age=604800] date:[thu, 09 oct 2014 20:38:01 gmt] x-cache:[hit] x-ec-custom-error:[1] content-type:[text/html] etag:["359670651"] expires:[thu, 16 oct 2014 20:38:01 gmt] is there solution this? head request without content-length kind of useless in opinion.
thanks.
for reasons beyond understanding, app engine not include content length in response header request method.
google-app-engine http go
Comments
Post a Comment