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
9b271ccb
Commit
9b271ccb
authored
May 26, 2010
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added mime-types for the delivery of the "index" object
parent
476e0a37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
intranet-rest-procs.tcl
tcl/intranet-rest-procs.tcl
+9
-1
No files found.
tcl/intranet-rest-procs.tcl
View file @
9b271ccb
...
@@ -288,7 +288,15 @@ ad_proc -private im_rest_page {
...
@@ -288,7 +288,15 @@ ad_proc -private im_rest_page {
]
]
set result
[
ad_parse_template -params
$params
"/packages/intranet-rest/www/
$rest
_otype"
]
set result
[
ad_parse_template -params
$params
"/packages/intranet-rest/www/
$rest
_otype"
]
doc_return 200
"text/xml"
$result
if
{[
regexp
{
<
\?
xml
}
$result
match
]}
{
set mime_type
"text/xml"
}
else
{
set mime_type
"text/html"
}
# ad_return_complaint 1 [ns_quotehtml $result
]
doc_return 200
$mime
_type
$result
return
return
}
}
...
...
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