Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a299287a
Commit
a299287a
authored
Dec 11, 2014
by
bgrant0607
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2832 from jlowdermilk/update-demo
Fix update-demo to work correctly with a web browser.
parents
09a160e2
3e3f802f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
test-webserver.go
contrib/for-demos/test-webserver/test-webserver.go
+3
-1
Dockerfile
examples/update-demo/images/kitten/Dockerfile
+2
-1
Dockerfile
examples/update-demo/images/nautilus/Dockerfile
+2
-1
No files found.
contrib/for-demos/test-webserver/test-webserver.go
View file @
a299287a
...
...
@@ -39,7 +39,9 @@ func main() {
w
.
Header
()
.
Set
(
"Access-Control-Allow-Origin"
,
"*"
)
w
.
Header
()
.
Set
(
"Access-Control-Allow-Credentials"
,
"true"
)
w
.
Header
()
.
Set
(
"Access-Control-Allow-Methods"
,
"GET, POST, OPTIONS"
)
w
.
Header
()
.
Set
(
"Access-Control-Allow-Headers"
,
"DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"
)
w
.
Header
()
.
Set
(
"Access-Control-Allow-Headers"
,
"DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,Cache-Control,Content-Type"
)
// Disable If-Modified-Since so update-demo isn't broken by 304s
r
.
Header
.
Del
(
"If-Modified-Since"
)
fs
.
ServeHTTP
(
w
,
r
)
})
...
...
examples/update-demo/images/kitten/Dockerfile
View file @
a299287a
...
...
@@ -13,4 +13,5 @@
# limitations under the License.
FROM
kubernetes/test-webserver
ADD
html/data.json html/kitten.jpg /
COPY
html/kitten.jpg kitten.jpg
COPY
html/data.json data.json
examples/update-demo/images/nautilus/Dockerfile
View file @
a299287a
...
...
@@ -13,4 +13,5 @@
# limitations under the License.
FROM
kubernetes/test-webserver
ADD
html/data.json html/nautilus.jpg /
COPY
html/nautilus.jpg nautilus.jpg
COPY
html/data.json data.json
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