-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: gorilla/mux
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.7.3
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: gorilla/mux
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.7.4
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 16 commits
- 15 files changed
- 10 contributors
Commits on Jul 1, 2019
-
Configuration menu - View commit details
-
Copy full SHA for d83b6ff - Browse repository at this point
Copy the full SHA d83b6ffView commit details
Commits on Jul 20, 2019
-
Avoid unnecessary conversion (#502)
No need to convert here.
Configuration menu - View commit details
-
Copy full SHA for 50fbc3e - Browse repository at this point
Copy the full SHA 50fbc3eView commit details -
Use a single append call instead of a ranged for loop.
Configuration menu - View commit details
-
Copy full SHA for eab9c4f - Browse repository at this point
Copy the full SHA eab9c4fView commit details -
[docs] Add documentation for using mux to serve a SPA (#493)
* Add documentation for using mux to serve a SPA * r -> router to prevent shadowing * Expand SPA acronym * BrowserRouter link * Add more comments to explain how the spaHandler.ServeHTTP method works
Configuration menu - View commit details
-
Copy full SHA for 7a1bf40 - Browse repository at this point
Copy the full SHA 7a1bf40View commit details -
Configuration menu - View commit details
-
Copy full SHA for e67b3c0 - Browse repository at this point
Copy the full SHA e67b3c0View commit details
Commits on Aug 24, 2019
-
Configuration menu - View commit details
-
Copy full SHA for e0cdff4 - Browse repository at this point
Copy the full SHA e0cdff4View commit details
Commits on Aug 26, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 9536e40 - Browse repository at this point
Copy the full SHA 9536e40View commit details
Commits on Aug 27, 2019
-
Configuration menu - View commit details
-
Copy full SHA for e1863a6 - Browse repository at this point
Copy the full SHA e1863a6View commit details
Commits on Aug 30, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 884b5ff - Browse repository at this point
Copy the full SHA 884b5ffView commit details
Commits on Oct 18, 2019
-
Guess the scheme if r.URL.Scheme is unset (#474)
* Guess the scheme if r.URL.Scheme is unset It's not expected that the request's URL is fully populated when used on the server-side (it's more of a client-side field), so we shouldn't expect it to be present. In practice, it's only rarely set at all on the server, making mux's `Schemes` matcher tricky to use as it is. This commit adds a test which would have failed before demonstrating the problem, as well as a fix which I think makes `.Schemes` match what users expect. * [doc] Add more detail to Schemes and URL godocs * Add route url test for schemes * Make httpserver test use more specific scheme matchers * Update test to have different responses per route
Configuration menu - View commit details
-
Copy full SHA for ff4e71f - Browse repository at this point
Copy the full SHA ff4e71fView commit details
Commits on Oct 24, 2019
-
Remove/cleanup request context helpers (#525)
* Remove context helpers in context.go * Update request context funcs to take concrete types * Move TestNativeContextMiddleware to mux_test.go * Clarify KeepContext Go 1.7+ comment Mux doesn't build on Go < 1.7 so the comment doesn't really need to clarify anymore.
Configuration menu - View commit details
-
Copy full SHA for f395758 - Browse repository at this point
Copy the full SHA f395758View commit details
Commits on Nov 15, 2019
-
Fix the CORSMethodMiddleware bug with subrouters
* Adds a test case for the repro given in issue #534 * Fixes the logic in CORSMethodMiddleware to handle matching routes better
Configuration menu - View commit details
-
Copy full SHA for 946b623 - Browse repository at this point
Copy the full SHA 946b623View commit details
Commits on Nov 17, 2019
-
Merge pull request #535 from fharding1/cors-subrouter-bug
Fix the CORSMethodMiddleware bug with subrouters
Configuration menu - View commit details
-
Copy full SHA for 2854a05 - Browse repository at this point
Copy the full SHA 2854a05View commit details
Commits on Nov 19, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 4de8a5a - Browse repository at this point
Copy the full SHA 4de8a5aView commit details
Commits on Nov 21, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 49c0148 - Browse repository at this point
Copy the full SHA 49c0148View commit details
Commits on Jan 12, 2020
-
perf: reduce allocations in (*routeRegexp).getURLQuery (#544)
A production server is seeing a significant amount of allocations in (*routeRegexp).getURLQuery Since it is only interested in a single value and only the first value we create a specialized function for that. Comparing a few parameter parsing scenarios: ``` Benchmark_findQueryKey/0-8 7184014 168 ns/op 0 B/op 0 allocs/op Benchmark_findQueryKey/1-8 5307873 227 ns/op 48 B/op 3 allocs/op Benchmark_findQueryKey/2-8 1560836 770 ns/op 483 B/op 10 allocs/op Benchmark_findQueryKey/3-8 1296200 931 ns/op 559 B/op 11 allocs/op Benchmark_findQueryKey/4-8 666502 1769 ns/op 3 B/op 1 allocs/op Benchmark_findQueryKeyGoLib/0-8 1740973 690 ns/op 864 B/op 8 allocs/op Benchmark_findQueryKeyGoLib/1-8 3029618 393 ns/op 432 B/op 4 allocs/op Benchmark_findQueryKeyGoLib/2-8 461427 2511 ns/op 1542 B/op 24 allocs/op Benchmark_findQueryKeyGoLib/3-8 324252 3804 ns/op 1984 B/op 28 allocs/op Benchmark_findQueryKeyGoLib/4-8 69348 14928 ns/op 12716 B/op 130 allocs/op ```
Configuration menu - View commit details
-
Copy full SHA for 75dcda0 - Browse repository at this point
Copy the full SHA 75dcda0View commit details
There are no files selected for viewing
This file was deleted.
This file was deleted.