Commit Graph

216 Commits

Author SHA1 Message Date
Kamil Kisiel
94903de8c9 Merge pull request #89 from gemnasium/add_tests_for_pipe
Add complementary test for patterns with pipe
2015-05-05 10:01:36 -07:00
Kamil Kisiel
660d31f860 Merge pull request #93 from shurcooL/patch-1
Fix up doc formatting, use spaces for alignment (tabs are for indentation only).
2015-04-22 13:14:49 -07:00
Dmitri Shuralyov
9641367e95 Fix up doc formatting, use spaces for alignment (tabs are for indentation only).
This fixes issue where if user has tab width other than 4, some lines will become misaligned. For example, see the package description at https://godoc.org/github.com/gorilla/mux.
2015-04-22 12:28:32 -07:00
Kamil Kisiel
8096f47503 Merge pull request #88 from gemnasium/add_tests_for_pipe
Add tests for patterns with pipe
2015-03-10 20:17:35 -07:00
Philippe Lafoucrière
e98fd88cbd Add complementary test for patterns with pipe 2015-03-10 21:48:38 -04:00
Philippe Lafoucrière
00bf0e01a1 Add tests for patterns with pipe
closes #62
2015-03-10 21:38:35 -04:00
Kamil Kisiel
8a875a034c Merge pull request #52 from sqs/BuildVarsFunc
BuildVarsFunc: modify route variables before building the URL from a route
2015-02-13 11:22:55 -08:00
Kamil Kisiel
e444e69cbd Merge pull request #71 from Madrigal/patch-1
Rearrange code
2014-09-26 08:38:14 -07:00
Felipe Madrigal
d7e4639818 Rearrange rules for matching strict slash 2014-09-26 00:20:46 -05:00
Felipe Madrigal
8df3a80fb8 Rearrange getHost function 2014-09-26 00:20:12 -05:00
Kamil Kisiel
4b8fbc56f3 Merge pull request #67 from pwaller/patch-1
Remove blank line to fix docs for  Route.Queries
2014-08-11 07:46:53 -07:00
Peter Waller
8f1a419c38 Remove blank line to fix docs for Route.Queries
The presence of a blank line was preventing the documentation from appearing in godoc.
2014-08-11 15:45:39 +01:00
Kamil Kisiel
14cafe2851 Merge pull request #60 from roylee17/gofmt
gofmt
2014-06-24 11:46:26 -07:00
Tzu-Jung Lee
3351f602a5 gofmt 2014-06-24 11:40:51 -07:00
Kamil Kisiel
854d482e26 Fix racy modification of NotFoundHandler. 2014-06-04 14:12:38 -07:00
Kamil Kisiel
0ef595e787 Merge pull request #56 from raphael/query-vars
Fix "Queries" matcher to support out-of-order query string parameters
2014-05-27 16:41:47 -07:00
Raphael Simon
451fd8b779 Additional code cleanup (see comments on issue #56) 2014-05-27 16:37:30 -07:00
Raphael Simon
3505396fb5 Code cleanup (see comments on issue #56) 2014-05-27 11:36:15 -07:00
Raphael Simon
69237eaae5 Fix "Queries" matcher to support out-of-order query string parameters 2014-05-27 09:34:08 -07:00
Kamil Kisiel
2900ff05a4 Merge pull request #55 from raphael/query-vars
Add ability to capture variables in query strings
2014-05-26 21:48:09 -07:00
Raphael Simon
0a0d6a1b2a Add tests for regexp variables in query strings
Fix how regular expression gets built for query string so that order of parameters is always preserved
2014-05-26 20:20:14 -07:00
Raphael Simon
c9469524da Fix old tests
Remove tests that don't apply anymore
Fix scheme matcher tests
2014-05-26 15:13:05 -07:00
Raphael Simon
65cc9b5df8 Add ability to capture variables in query strings 2014-05-26 15:01:42 -07:00
Kamil Kisiel
136d54f81f Merge pull request #51 from ttencate/master
Make PathPrefix more polite towards StrictSlash setting, and add better tests for the latter
2014-05-05 06:44:26 -07:00
Quinn Slack
a883d5a9b9 Call parent BuildVarsFuncs 2014-04-23 11:44:16 -07:00
Quinn Slack
cef3b0cd6d Add BuildVarsFunc to allow modifying route variables before generating a route's URL 2014-04-23 11:44:16 -07:00
Thomas ten Cate
b864f07c53 Propagate StrictSlash to subrouters instead of rudely turning it off 2014-04-23 19:53:35 +02:00
Thomas ten Cate
3509745ae8 Add tests for all four StrictSlash cases 2014-04-23 19:27:53 +02:00
Thomas ten Cate
bac1372129 Convert TestStrictSlash to a table driven test 2014-04-23 19:24:12 +02:00
Thomas ten Cate
033224c12e Document behaviour of StrictSlash and PathPrefix better, and add tests to nail this down 2014-04-23 18:19:14 +02:00
Thomas ten Cate
525eff436e Improve docs about leading and trailing slashes 2014-04-23 17:40:15 +02:00
Kamil Kisiel
270c42505a Merge pull request #49 from sqs/gofmt
Apply gofmt
2014-04-19 10:20:04 +02:00
Quinn Slack
9ee70e572c gofmt 2014-04-17 00:44:35 -07:00
Kamil Kisiel
9ede152210 Add go 1.2 to travis.yml 2013-12-04 23:18:22 -08:00
Kamil Kisiel
c4e0d8b371 Merge pull request #41 from pschlump/master
Fix to keep query string intact when 301 redirect occurs.
2013-11-30 14:10:54 -08:00
Kamil Kisiel
e807f7c338 Add Travis badge 2013-11-30 13:26:46 -08:00
Kamil Kisiel
3829d74241 Add travis.yml 2013-11-30 13:24:27 -08:00
Kamil Kisiel
db86729398 Merge pull request #43 from andrewsmedina/gofmt
go fmt.
2013-11-29 16:28:40 -08:00
Andrews Medina
cebebed6c4 go fmt.
result of `gofmt -s -w . `.
2013-11-29 22:23:25 -02:00
Philip Schlump
ab8ae247f1 Fixed the domain name copied from my other code to be example.com 2013-11-18 11:53:02 -07:00
Philip Schlump
6689ee8243 Cleaned up testing. 2013-11-18 10:54:45 -07:00
Philip Schlump
1a2411f44a Added tests to verify that the 301 redirect returns query string 2013-11-18 10:14:28 -07:00
Philip Schlump
d10d5466f2 Fixed problem with droping query string. 2013-11-14 19:27:38 -07:00
Kamil Kisiel
42cbcc5a24 Merge pull request #38 from TheDude05/fix-doc-typo
Fix typo in documentation
2013-11-09 22:54:15 -08:00
Andrew Williams
9d99a92775 Remove extra parentheses 2013-11-09 22:22:06 -06:00
Kamil Kisiel
b08c5fcf14 Merge pull request #35 from JulienSchmidt/patch-1
Fix typo
2013-09-11 13:10:56 -07:00
Julien Schmidt
0ae6d35b08 Fix typo
remove doubly present "the"
2013-09-11 20:33:30 +02:00
Kamil Kisiel
ea1bb06e00 Merge pull request #33 from Crisfole/fixDocumentation
Add "of" like the rest of the function docstrings
2013-08-29 09:41:54 -07:00
Christopher Pfohl
04a79835ae Add "of" like the rest of the function docstrings 2013-08-29 12:05:40 -04:00
John Nadratowski
e718e932ee Add KeepContext flag to Router to disable clearing of context data. 2013-07-09 21:15:18 -07:00