mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Minor fix to remove/add percent encoding to name portion of query item
This commit is contained in:
parent
5f1541d154
commit
ca6e48910a
1 changed files with 2 additions and 2 deletions
|
@ -2691,7 +2691,7 @@ GS_PRIVATE_INTERNAL(NSURLComponents)
|
|||
|
||||
while((i = [en nextObject]) != nil)
|
||||
{
|
||||
NSURLQueryItem *ni = [NSURLQueryItem queryItemWithName: [i name]
|
||||
NSURLQueryItem *ni = [NSURLQueryItem queryItemWithName: [[i name] _stringByAddingPercentEscapesForQuery]
|
||||
value: [[i value] _stringByAddingPercentEscapesForQuery]];
|
||||
[items addObject: ni];
|
||||
}
|
||||
|
@ -2707,7 +2707,7 @@ GS_PRIVATE_INTERNAL(NSURLComponents)
|
|||
|
||||
while((i = [en nextObject]) != nil)
|
||||
{
|
||||
NSURLQueryItem *ni = [NSURLQueryItem queryItemWithName: [i name]
|
||||
NSURLQueryItem *ni = [NSURLQueryItem queryItemWithName: [[i name] stringByRemovingPercentEncoding]
|
||||
value: [[i value] stringByRemovingPercentEncoding]];
|
||||
[items addObject: ni];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue