Skip to content
Browse files

Merge pull request #396 from joehillen/_search-GET

Change _search to use HTTP GET
  • Loading branch information...
2 parents d4d5420 + 51ef22e commit e62b4a4b81832ce4a9ada669d24f716faccd9804 @jgm committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 Network/Gitit.hs
  2. +1 −1 data/templates/sitenav.st
View
2 Network/Gitit.hs
@@ -171,7 +171,7 @@ wikiHandlers =
guardBareBase >> getWikiBase >>= \b -> movedPermanently (b ++ "/") (toResponse ())
, dir "_activity" showActivity
, dir "_go" goToPage
- , dir "_search" searchResults
+ , method GET >> dir "_search" searchResults
, dir "_upload" $ do guard =<< return . uploadsAllowed =<< getConfig
msum [ method GET >> authenticate ForModify uploadForm
, method POST >> authenticate ForModify uploadFile ]
View
2 data/templates/sitenav.st
@@ -15,7 +15,7 @@
$endif$
<li><a href="$base$/Help">Help</a></li>
</ul>
- <form action="$base$/_search" method="post" id="searchform">
+ <form action="$base$/_search" method="get" id="searchform">
<input type="text" name="patterns" id="patterns"/>
<input type="submit" name="search" id="search" value="Search"/>
</form>

0 comments on commit e62b4a4

Please sign in to comment.
Something went wrong with that request. Please try again.