Problem with quotes in ETag & If-None-Match header

283 views
Skip to first unread message

Stephen Ball

unread,
Jul 26, 2013, 4:42:09 AM7/26/13
to guz...@googlegroups.com
I may well be misunderstanding something here but I am having a problem with quotes around ETags when using the CachePlugin (with the Doctrine MemcacheCache)

Using the PsrLogAdapter I can see that my REST service is sending back the following ETag header

ETag: "43ae112e7f3c05714effe7995f788aed"

however on subsequent requests guzzle is sending it back double quoted

If-None-Match: ""43ae112e7f3c05714effe7995f788aed""

So the service always responds with the full response again.

Am I doing something wrong?

Sorry I did search but all I could find was a previous post about guzzle stripping the quotes from the ETag completely

Michael

unread,
Jul 26, 2013, 12:02:09 PM7/26/13
to guz...@googlegroups.com
Thanks for letting me know. There was a bug in the code that sends the "If-None-Match" header that was double quoting ETags. This is now fixed in master and will be present in the next tagged release.

Stephen Ball

unread,
Jul 26, 2013, 2:50:58 PM7/26/13
to guz...@googlegroups.com
Great! Good to see I wasn't going mad. I see your commit on github, that is exactly what I did I just wasn't sure if I was misunderstanding how it was suppose to work.
Reply all
Reply to author
Forward
0 new messages