File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ feature {NONE} -- Initialization
16
16
-- Initialize `Current'.
17
17
do
18
18
create {LIBCURL_HTTP_CLIENT_SESSION } client .make (a_service ) -- "http://jfiat.dyndns.org:8190")
19
+ client .set_timeout (25 )
19
20
end
20
21
21
22
feature -- Access
@@ -71,6 +72,7 @@ feature -- Access
71
72
if l_ctx = Void then
72
73
create l_ctx .make
73
74
end
75
+ l_ctx .add_header (" Accept" , " application/vnd.collection+json" )
74
76
l_ctx .add_header (" Content-Type" , " application/vnd.collection+json" )
75
77
76
78
if attached cj_template_to_json (tpl ) as j then
@@ -112,6 +114,8 @@ feature -- Access
112
114
create l_ctx .make
113
115
end
114
116
l_ctx .add_header (" Content-Type" , " application/vnd.collection+json" )
117
+ l_ctx .add_header (" Accept" , " application/vnd.collection+json" )
118
+
115
119
116
120
if attached cj_template_to_json (tpl ) as j then
117
121
d := " { %" template %" : " + j .representation + " }"
@@ -151,6 +155,8 @@ feature -- Access
151
155
create l_ctx .make
152
156
end
153
157
l_ctx .add_header (" Content-Type" , " application/vnd.collection+json" )
158
+ l_ctx .add_header (" Accept" , " application/vnd.collection+json" )
159
+
154
160
155
161
if attached q .data as q_data then
156
162
across
You can’t perform that action at this time.
0 commit comments