Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-rest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-rest
Commits
c07bbea6
Commit
c07bbea6
authored
Jun 28, 2011
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-- bugfix: parser would break due to mal formed ns_log
parent
5cf17732
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
intranet-rest-util-procs.tcl
tcl/intranet-rest-util-procs.tcl
+2
-2
No files found.
tcl/intranet-rest-util-procs.tcl
View file @
c07bbea6
...
...
@@ -837,7 +837,7 @@ ad_proc -public im_rest_parse_xml_json_content {
# Parse the HTTP content
switch
$format
{
json
{
ns_log Notice
"im_rest_parse_xml_j
a
son_content: going to parse json content=
$content
"
ns_log Notice
"im_rest_parse_xml_json_content: going to parse json content=
$content
"
#
{
"id"
:8799,
"email"
:
"bbigboss@tigerpond.com"
,
"first_names"
:
"Ben"
,
"last_name"
:
"Bigboss"
}
array set parsed_json
[
util::json::parse
$content
]
set json_list
$parsed
_json
(
_object_
)
...
...
@@ -851,7 +851,7 @@ ad_proc -public im_rest_parse_xml_json_content {
}
xml
{
# store the key-value pairs into a hash array
ns_log Notice
"
"
im_rest_parse_xml_ja
son_content: going to parse xml content=$content
"
ns_log Notice
"
im_rest_parse_xml_j
son_content: going to parse xml content=
$content
"
if
{[
catch
{
set
doc
[
dom parse
$content
]}
err_msg
]}
{
return
[
im_rest_error -http_status 406 -message
"Unable to parse XML: '
$err
_msg'."
]
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment