[Opa] HTTP custom headers
Li-Hsuan Lung
lihsuan at 8thlight.com
Sat Sep 24 18:12:41 EDT 2011
I am trying to use the custom_headers field in WebClient.Post.Options,
but I can't find the new field I added in error.log.
My options:
WebClient.Post.default_options with
mimetype = file.mimetype
content = some(file.content)
auth = some("AWS {amazon_access_key}:{amazon_signature}")
custom_headers = some("Date: {Date.to_formatted_string(date_printer,
Date.now())}")
In the log:
Authorization: AWS amazon_access_key:amazon_signature
Host: bucket.s3.amazonaws.com
User-Agent: Opa-webclient/612
Content-Length: 104856
Content-Type: image/jpeg
Can someone verify that custom_headers is functioning, and if so, how
can I log the entire request?
Thanks,
Li-Hsuan
More information about the Opa
mailing list