summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-02-06 11:21:42 +0100
committerDouwe Maan <douwe@gitlab.com>2015-02-06 11:23:12 +0100
commit639c93b4f2bd492a214065b5fdc47da2f5d8614d (patch)
tree45204e566c7114668821ef920ba9989efe17b586 /config/routes.rb
parent0a9cab4ee65f2b42c56989698c401cab60d68b53 (diff)
downloadgitlab-ce-639c93b4f2bd492a214065b5fdc47da2f5d8614d.tar.gz
Don't have Markdown preview fail for long content by using POST rather than GET.
See https://github.com/gitlabhq/gitlabhq/issues/8611.
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index f0abd876ecd..66faf5312b4 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -209,7 +209,7 @@ Gitlab::Application.routes.draw do
post :unarchive
post :upload_image
post :toggle_star
- get :markdown_preview
+ post :markdown_preview
get :autocomplete_sources
end