glib-web 0.5.37 → 0.5.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/glib/json/ui.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 347507dbedf205e468be58cca441b8dac67e217be1895537c2f7b347d69f6412
|
4
|
+
data.tar.gz: e611ba1dbf75e8affbaae6e29dc5c5f752c8286edc1a205c31a32ac4650b90ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f57cd676fcad8b49add5d460be9707726e42cfa9db6fd701d7d3250ebe9cae9a2930429a2f6b4be56ca64b0fd6d655bcc01c245c7aa4cfa16ed2419cdfa1194c
|
7
|
+
data.tar.gz: 9d66d6fac6e1f00a2c3131e042302309ea0cb923576da3606a84a988b9d1feae91c2dc85c7114d6dc8b07994b1faa617ecbbbf2c804ddbe060ceb3e610f871c0
|
@@ -56,7 +56,9 @@ module Glib::Json::Ui
|
|
56
56
|
@__json_ui_activated = true
|
57
57
|
request.variant = :ui
|
58
58
|
|
59
|
-
|
59
|
+
# Some bots (e.g. Line and DuckDuckGo) passes `*/*` in the `Accept` header
|
60
|
+
is_html = request.format.html? || request.format == '*/*'
|
61
|
+
if is_html && params[:_skip_render] != 'true'
|
60
62
|
@__json_ui_rendering = :vue
|
61
63
|
request.format = 'json'
|
62
64
|
end
|