Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤖 Update from upstream repository gorilla/mux #4

Open
wants to merge 90 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
bc452d9
[build] Allow tip failures (#312)
elithrar Nov 4, 2017
9f48112
[docs] Document router.Match (#313)
kisielk Nov 5, 2017
7f08801
MatchErr is set to ErrNotFound if NotFoundHandler is used (#311)
roobre Nov 5, 2017
2d5fef0
[docs] fix outdated UseEncodedPath method docs (#314)
chrisdostert Nov 9, 2017
4a3d4f3
[bugfix] Fix method subrouter handler matching (#300) (#317)
mtso Nov 28, 2017
65ec724
Create ISSUE_TEMPLATE.md (#318)
elithrar Nov 29, 2017
c572efe
[docs] Note StrictSlash re-direct behaviour #308 (#321)
elithrar Dec 2, 2017
7904d2e
[docs] Add example usage for Route.HeadersRegexp (#320)
mtso Dec 4, 2017
5ab525f
Public test API to set URL params (#322)
grim-fendango Dec 8, 2017
512169e
refactor routeRegexp, particularily newRouteRegexp. (#328)
kisielk Jan 5, 2018
5bbbb5b
[docs] Add graceful shutdown example (#329)
elithrar Jan 7, 2018
53c1911
[feat] Add middleware support as discussed in #293 (#294)
roobre Jan 16, 2018
0b74e3d
Make shutdown docs compilable (#330)
kushmansingh Jan 16, 2018
85e6bff
Update doc.go: r.AddMiddleware(...) -> r.Use(...)
kisielk Jan 17, 2018
63c5c2f
[docs] Fix Middleware docs typos (#332)
elithrar Jan 17, 2018
69dae3b
[docs] Add testing example (#331)
elithrar Jan 17, 2018
ad87908
[docs] Fix doc.go (#333)
elithrar Jan 18, 2018
3dbb9ed
README.md: add miss "time" (#336)
safeoy Jan 20, 2018
dc83507
[docs] README.md: Improve "walking routes" example. (#337) (#323)
kisielk Jan 20, 2018
077b44c
[docs] Document route.Get* methods consistently (#338)
kisielk Jan 20, 2018
0fdf828
[docs] Clarify SetURLVars (#335)
fharding1 Jan 20, 2018
c0091a0
Create authentication middleware example. (#340)
kisielk Jan 20, 2018
d284fd8
Modify 403 status code to const variable (#349)
KimMachineGun Feb 25, 2018
07ba1fd
Modify http status code to variable in README (#350)
KimMachineGun Feb 26, 2018
4dbd923
Make Use() variadic (#355)
jsvensson Mar 14, 2018
94231ff
Fix table-driven example documentation (#363)
brandon-height Apr 3, 2018
b57cb16
[build] Update Go versions; add 1.10.x (#364)
elithrar Apr 16, 2018
ded0c29
Fix linter issues (docs) (#370)
elithrar May 1, 2018
5e55a4a
Add CORSMethodMiddleware (#366)
fharding1 May 12, 2018
fdeb7bc
[docs] Doc fix for testing variables in path (#374)
swalberg May 13, 2018
e3702be
[docs] Improve docstrings for middleware, skipclean (#375)
elithrar May 13, 2018
c856192
[deps] Add go.mod for versioned Go (#376)
elithrar May 17, 2018
e0b5aba
Initialize user map (#371)
kalafut May 26, 2018
cb46983
Update LICENSE & AUTHORS files. (#386)
elithrar Jun 5, 2018
815b8c6
Clarify behaviour of Name method if called multiple times.
kisielk Aug 7, 2018
e48e440
Add test for multiple calls to Name().
kisielk Aug 7, 2018
962c5be
Add 1.11 to build in travis (#398)
yershalom Aug 30, 2018
8771f97
Drop support for Go < 1.7: remove gorilla/context (#391)
fharding1 Sep 2, 2018
cf6680b
Create release-drafter.yml (#399)
elithrar Sep 2, 2018
9e1f595
Always run on the latest stable Go version. (#402)
elithrar Sep 3, 2018
deb579d
README.md: Update site URL
kisielk Oct 12, 2018
521ea7b
Use constant for 301 status code in regexp.go (#412)
trungnn Oct 24, 2018
3d80bc8
Use subtests in mux_test.go (#415)
kanozec Oct 30, 2018
758eb64
Improve subroute configuration propagation #422
jwilner Dec 7, 2018
419fd9f
Add stalebot config (#424)
elithrar Dec 7, 2018
d2b5d13
Update and rename stale to stale.yml (#425)
elithrar Dec 8, 2018
6137e19
remove redundant code that remove support gorilla/context (#427)
alimy Dec 17, 2018
a31c178
Replace domain.com with example.com (#434)
RaeesBhatti Dec 25, 2018
ef912dd
[bugfix] Clear matchErr when traversing subrouters.
tomare Dec 28, 2018
f3ff42f
getHost() now returns full host & port information (#383)
santsai Jan 4, 2019
08e7f80
Ignore ErrNotFound while matching Subrouters (#438)
g-w Jan 8, 2019
797e653
Call WriteHeader after setting other header(s) in the example (#442)
timucingelici Jan 25, 2019
a796238
replace rr.HeaderMap by rr.Header() (#443)
moeryomenko Jan 25, 2019
8559a4f
[docs] typo (#454)
souvikhaldar Feb 17, 2019
8eaa9f1
fix go1.12 go vet usage (#458)
seriousben Feb 28, 2019
15a353a
adding Router.Name to create new Route (#457)
seriousben Feb 28, 2019
c5c6c98
[build] Remove sudo setting from travis.yml (#462)
sekky0905 Mar 16, 2019
ed099d4
host:port matching does not require a :port to be specified.
cognusion May 17, 2019
212aa90
[WIP] Create CircleCI config (#484)
elithrar Jun 24, 2019
4248f5c
Fix nil panic in authentication middleware example (#489)
fharding1 Jun 28, 2019
6495467
Delete .travis.yml (#490)
elithrar Jun 28, 2019
48f941f
Use subtests for middleware tests (#478)
fharding1 Jun 29, 2019
d70f7b4
Delete ISSUE_TEMPLATE.md (#492)
elithrar Jun 29, 2019
0534769
Improve CORS Method Middleware (#477)
fharding1 Jun 29, 2019
00bdffe
Update stale.yml (#494)
elithrar Jun 30, 2019
d83b6ff
Update config.yml (#495)
elithrar Jul 1, 2019
50fbc3e
Avoid unnecessary conversion (#502)
muesli Jul 20, 2019
eab9c4f
Simplify code (#501)
muesli Jul 20, 2019
7a1bf40
[docs] Add documentation for using mux to serve a SPA (#493)
fharding1 Jul 20, 2019
e67b3c0
Remove TravisCI badge (#503)
elithrar Jul 20, 2019
e0cdff4
Update README (self-host logo) (#513)
elithrar Aug 24, 2019
9536e40
bugfix: subrouter custom methodNotAllowed handler returning 404 (#509…
jonasdebeukelaer Aug 26, 2019
e1863a6
Modified http status codes, using constants provided by the http pack…
vivekv96 Aug 27, 2019
884b5ff
Added capacity to slice creation, when capacity is known (#516)
vivekv96 Aug 30, 2019
ff4e71f
Guess the scheme if r.URL.Scheme is unset (#474)
euank Oct 18, 2019
f395758
Remove/cleanup request context helpers (#525)
fharding1 Oct 24, 2019
946b623
Fix the CORSMethodMiddleware bug with subrouters
fharding1 Nov 14, 2019
2854a05
Merge pull request #535 from fharding1/cors-subrouter-bug
elithrar Nov 17, 2019
4de8a5a
fix headers regexp test (#536)
icattlecoder Nov 19, 2019
49c0148
lint: Remove golint warning (#526)
kveselkov Nov 21, 2019
75dcda0
perf: reduce allocations in (*routeRegexp).getURLQuery (#544)
klauspost Jan 12, 2020
948bec3
docs: Remove stale text from comment. (#568)
EricIO May 17, 2020
98cb6bf
fix: regression in vars extract for wildcard host (#579)
harshavardhana Jul 11, 2020
d07530f
build: CircleCI 2.1 + build matrix (#595)
elithrar Sep 12, 2020
3cf0d01
Include "404" and "405" in the docs (#602)
Jille Sep 14, 2021
91708ff
docs: update README w.r.t new maintainer ask (#660)
elithrar Dec 12, 2021
c889844
regexp: use iota instead of hardcoded values for regexType* (#679)
michaelgrigoryan25 Jun 26, 2022
07eedff
[docs] `authenticationMiddleware` initialization in the `README.md` f…
amustaque97 Aug 17, 2022
5e1e8c8
archive mode
elithrar Dec 9, 2022
eb99d7a
archive mode
elithrar Dec 9, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
version: 2.1

jobs:
"test":
parameters:
version:
type: string
default: "latest"
golint:
type: boolean
default: true
modules:
type: boolean
default: true
goproxy:
type: string
default: ""
docker:
- image: "circleci/golang:<< parameters.version >>"
working_directory: /go/src/github.com/gorilla/mux
environment:
GO111MODULE: "on"
GOPROXY: "<< parameters.goproxy >>"
steps:
- checkout
- run:
name: "Print the Go version"
command: >
go version
- run:
name: "Fetch dependencies"
command: >
if [[ << parameters.modules >> = true ]]; then
go mod download
export GO111MODULE=on
else
go get -v ./...
fi
# Only run gofmt, vet & lint against the latest Go version
- run:
name: "Run golint"
command: >
if [ << parameters.version >> = "latest" ] && [ << parameters.golint >> = true ]; then
go get -u golang.org/x/lint/golint
golint ./...
fi
- run:
name: "Run gofmt"
command: >
if [[ << parameters.version >> = "latest" ]]; then
diff -u <(echo -n) <(gofmt -d -e .)
fi
- run:
name: "Run go vet"
command: >
if [[ << parameters.version >> = "latest" ]]; then
go vet -v ./...
fi
- run:
name: "Run go test (+ race detector)"
command: >
go test -v -race ./...

workflows:
tests:
jobs:
- test:
matrix:
parameters:
version: ["latest", "1.15", "1.14", "1.13", "1.12", "1.11"]
8 changes: 8 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Config for https://github.com/apps/release-drafter
template: |

<summary of changes here>

## CHANGELOG

$CHANGES
12 changes: 12 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
daysUntilStale: 75
daysUntilClose: 14
# Issues with these labels will never be considered stale
exemptLabels:
- proposal
- needs review
- build system
staleLabel: stale
markComment: >
This issue has been automatically marked as stale because it hasn't seen
a recent update. It'll be automatically closed in a few days.
closeComment: false
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

8 changes: 8 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This is the official list of gorilla/mux authors for copyright purposes.
#
# Please keep the list sorted.

Google LLC (https://opensource.google.com/)
Kamil Kisielk <[email protected]>
Matt Silverlock <[email protected]>
Rodrigo Moraes (https://github.com/moraes)
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2012 Rodrigo Moraes. All rights reserved.
Copyright (c) 2012-2018 The Gorilla Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
Expand Down
Loading