Skip to content

Conversation

@Mazyod
Copy link
Contributor

@Mazyod Mazyod commented May 1, 2019

This PR parses the URL using URLComponents, then assigns the path property of HttpRequest to the components.path. This parity with Foundation API is desirable I believe, and adheres to the Principle of Least Astonishment 😄.

With this fix, two other notable changes are also made:

  1. Minimum deployment target for macOS is bumped to 10.10
  2. Query parsing code is removed in favor of Foundation API parsing using URLComponents

Fixes #391

@swifter-bot
Copy link

swifter-bot commented May 1, 2019

2 Warnings
⚠️ It seems like you’ve added new tests to the library. If that’s the case, please update the XCTestManifests.swift file running in your terminal the command swift test --generate-linuxmain.
⚠️ If you ran the command swift test --generate-linuxmain in your terminal, please remove the line testCase(IOSafetyTests.__allTests__IOSafetyTests), from public func __allTests() -> [XCTestCaseEntry] in the bottom of the file. For more reference see #366.
1 Message
📖 Hey, @Mazyod 👋.

Generated by 🚫 Danger

@Mazyod
Copy link
Contributor Author

Mazyod commented May 1, 2019

Passed linux in one go this time 😌

# Conflicts:
#	XCode/Sources/HttpParser.swift
#	XCode/Swifter.xcodeproj/project.pbxproj
#	XCode/Tests/SwifterTestsHttpParser.swift
@Mazyod Mazyod force-pushed the bugfix/parse-path-without-query branch from b9114a9 to 364f3a8 Compare May 1, 2019 05:22
@Mazyod Mazyod force-pushed the bugfix/parse-path-without-query branch from 364f3a8 to fb4ba22 Compare May 1, 2019 05:23
Copy link
Member

@Vkt0r Vkt0r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! Thanks 👍

@Vkt0r Vkt0r merged commit 3367b63 into httpswift:stable May 2, 2019
@Mazyod Mazyod deleted the bugfix/parse-path-without-query branch May 3, 2019 12:29
tomieq pushed a commit to tomieq/swifterfork that referenced this pull request Apr 1, 2021
…t-query

Parse HttpRequest Path without Query String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HttpRequest Path Includes Query String

3 participants