Comments (11)
Let me look into it. Agoo may not be converting the \n
to a ;
on the way out. It is in the outgoing direction you are referring to, right?
from agoo.
It's outgoing, but it shouldn't be converting \n
to a ;
. It should convert e.g. this:
Set-cookie:foo=bar;
foo2=bar2;
foo3=bar3;
Into this:
Set-Cookie:foo=bar;
Set-Cookie:foo2=bar2;
Set-Cookie:foo3=bar3;
from agoo.
I believe this is also conformant:
Set-Cookie:foo=bar;foo2=bar2;foo3=bar3
Are there some issues with that approach that I'm not aware of?
from agoo.
Yeah, it's not conformant because semicolons are used as directive separators in the Set-Cookie
header (the MDN page has some examples).
Other HTTP headers (e.g. the Link
header) implement a "list" style where values can be separated with commas, but since the e.g. Expires
directive contains a comma, Set-Cookie
can't use that format either. Per RFC 6265, section 3:
Origin servers SHOULD NOT fold multiple Set-Cookie header fields into a single header field. The usual mechanism for folding HTTP headers fields (i.e., as defined in RFC2616) might change the semantics of the Set-Cookie header field because the %x2C (",") character is used by Set-Cookie in a way that conflicts with such folding.
Based on that, it's my understanding that multiple Set-Cookie
s are needed.
from agoo.
Fair enough. I'll take that approach.
from agoo.
Awesome, thank you so much!
from agoo.
If it can wait a week or two I'd like to release with the new feature I'm working on of GraphQL subscription support. I'll have the fix in this weekend if you can live off the develop branch until the next release.
from agoo.
No problem, I can wait. Thanks again
from agoo.
It looks like this was fixed with 6228b64 and release with 2.10.0, yeah?
from agoo.
Yes indeed.
from agoo.
You're the man, thank you!
from agoo.
Related Issues (20)
- Fragment usage HOT 17
- CORS issues HOT 8
- Agoo dumps core on malformed SDL HOT 5
- fails to launch in clustered mode HOT 17
- Agoo Fragment Cycle Security Vulnerability HOT 2
- Disabling introspection for GraphQL HOT 12
- Changes on args or req does not get fowarded to the other calls HOT 9
- Static asset with space in filename HOT 4
- gem install agoo fails on MacOS Ventura 13.2.1 HOT 9
- Static .txt files are not served with utf-8 encoding HOT 8
- Protect against smuggling attacks HOT 3
- Agoo & Sidekiq::Web HOT 9
- Can you tell me how I can use agoo with rack middleware? HOT 13
- Case insensitive Content-Type header HOT 4
- GraphQL in rails HOT 22
- How to render a error message using GraphQL HOT 6
- How to create a dynamic GraphQL schema HOT 6
- Configuring worker count and thread count when used with Rails HOT 5
- Port cleanup on shutdown? HOT 3
- REMOTE_ADDR not set on ENV HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agoo.