Another small change that should fix the caching problem.

This commit is contained in:
2020-12-02 20:06:28 +01:00
parent c21b66e0d9
commit cda32daacf
5 changed files with 25 additions and 23 deletions

32
.idea/workspace.xml generated
View File

@@ -19,14 +19,11 @@
<select /> <select />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="d639f8a9-4b6d-4957-9ba4-8361acac15ca" name="Default Changelist" comment="Hopefully fixed the caching problem with random"> <list default="true" id="d639f8a9-4b6d-4957-9ba4-8361acac15ca" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/app.yaml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/app.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/app.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/doc/swagger.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/doc/swagger.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/musicFacade.go" beforeDir="false" afterPath="$PROJECT_DIR$/musicFacade.go" afterDir="false" /> <change beforePath="$PROJECT_DIR$/musicFacade.go" beforeDir="false" afterPath="$PROJECT_DIR$/musicFacade.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/musicserver.go" beforeDir="false" afterPath="$PROJECT_DIR$/musicserver.go" afterDir="false" /> <change beforePath="$PROJECT_DIR$/musicserver.go" beforeDir="false" afterPath="$PROJECT_DIR$/musicserver.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/syncFacade.go" beforeDir="false" afterPath="$PROJECT_DIR$/syncFacade.go" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -176,7 +173,8 @@
<MESSAGE value="1.0 of Go version" /> <MESSAGE value="1.0 of Go version" />
<MESSAGE value="Small fix in Dockerfile" /> <MESSAGE value="Small fix in Dockerfile" />
<MESSAGE value="Fixed CORS" /> <MESSAGE value="Fixed CORS" />
<option name="LAST_COMMIT_MESSAGE" value="Fixed CORS" /> <MESSAGE value="Hopefully fixed the caching problem with random" />
<option name="LAST_COMMIT_MESSAGE" value="Hopefully fixed the caching problem with random" />
</component> </component>
<component name="VgoProject"> <component name="VgoProject">
<integration-enabled>true</integration-enabled> <integration-enabled>true</integration-enabled>
@@ -198,10 +196,10 @@
<screen x="0" y="0" width="1280" height="800" /> <screen x="0" y="0" width="1280" height="800" />
</state> </state>
<state x="354" y="206" key="#com.intellij.fileTypes.FileTypeChooser/0.0.1280.800@0.0.1280.800" timestamp="1606327049349" /> <state x="354" y="206" key="#com.intellij.fileTypes.FileTypeChooser/0.0.1280.800@0.0.1280.800" timestamp="1606327049349" />
<state x="63" y="25" width="1120" height="702" key="CommitChangelistDialog2" timestamp="1606934817114"> <state x="63" y="25" width="1120" height="702" key="CommitChangelistDialog2" timestamp="1606935043680">
<screen x="0" y="0" width="1280" height="800" /> <screen x="0" y="0" width="1280" height="800" />
</state> </state>
<state x="63" y="25" width="1120" height="702" key="CommitChangelistDialog2/0.0.1280.800@0.0.1280.800" timestamp="1606934817114" /> <state x="63" y="25" width="1120" height="702" key="CommitChangelistDialog2/0.0.1280.800@0.0.1280.800" timestamp="1606935043680" />
<state x="500" y="304" key="Github.ShareDialog" timestamp="1602604919305"> <state x="500" y="304" key="Github.ShareDialog" timestamp="1602604919305">
<screen x="0" y="0" width="1280" height="800" /> <screen x="0" y="0" width="1280" height="800" />
</state> </state>
@@ -210,25 +208,25 @@
<screen x="0" y="0" width="1280" height="800" /> <screen x="0" y="0" width="1280" height="800" />
</state> </state>
<state x="454" y="112" key="Github.UntrackedFilesDialog/0.0.1280.800@0.0.1280.800" timestamp="1602604943862" /> <state x="454" y="112" key="Github.UntrackedFilesDialog/0.0.1280.800@0.0.1280.800" timestamp="1602604943862" />
<state width="1238" height="212" key="GridCell.Tab.0.bottom" timestamp="1606934825189"> <state width="1238" height="212" key="GridCell.Tab.0.bottom" timestamp="1606935784051">
<screen x="0" y="0" width="1280" height="800" /> <screen x="0" y="0" width="1280" height="800" />
</state> </state>
<state width="1238" height="212" key="GridCell.Tab.0.bottom/0.0.1280.800@0.0.1280.800" timestamp="1606934825189" /> <state width="1238" height="212" key="GridCell.Tab.0.bottom/0.0.1280.800@0.0.1280.800" timestamp="1606935784051" />
<state width="1238" height="212" key="GridCell.Tab.0.bottom/0.25.1280.702@0.25.1280.702" timestamp="1606934333706" /> <state width="1238" height="212" key="GridCell.Tab.0.bottom/0.25.1280.702@0.25.1280.702" timestamp="1606934333706" />
<state width="1238" height="212" key="GridCell.Tab.0.center" timestamp="1606934825188"> <state width="1238" height="212" key="GridCell.Tab.0.center" timestamp="1606935784048">
<screen x="0" y="0" width="1280" height="800" /> <screen x="0" y="0" width="1280" height="800" />
</state> </state>
<state width="1238" height="212" key="GridCell.Tab.0.center/0.0.1280.800@0.0.1280.800" timestamp="1606934825188" /> <state width="1238" height="212" key="GridCell.Tab.0.center/0.0.1280.800@0.0.1280.800" timestamp="1606935784048" />
<state width="1238" height="212" key="GridCell.Tab.0.center/0.25.1280.702@0.25.1280.702" timestamp="1606934333705" /> <state width="1238" height="212" key="GridCell.Tab.0.center/0.25.1280.702@0.25.1280.702" timestamp="1606934333705" />
<state width="1238" height="212" key="GridCell.Tab.0.left" timestamp="1606934825187"> <state width="1238" height="212" key="GridCell.Tab.0.left" timestamp="1606935784047">
<screen x="0" y="0" width="1280" height="800" /> <screen x="0" y="0" width="1280" height="800" />
</state> </state>
<state width="1238" height="212" key="GridCell.Tab.0.left/0.0.1280.800@0.0.1280.800" timestamp="1606934825187" /> <state width="1238" height="212" key="GridCell.Tab.0.left/0.0.1280.800@0.0.1280.800" timestamp="1606935784047" />
<state width="1238" height="212" key="GridCell.Tab.0.left/0.25.1280.702@0.25.1280.702" timestamp="1606934333703" /> <state width="1238" height="212" key="GridCell.Tab.0.left/0.25.1280.702@0.25.1280.702" timestamp="1606934333703" />
<state width="1238" height="212" key="GridCell.Tab.0.right" timestamp="1606934825188"> <state width="1238" height="212" key="GridCell.Tab.0.right" timestamp="1606935784049">
<screen x="0" y="0" width="1280" height="800" /> <screen x="0" y="0" width="1280" height="800" />
</state> </state>
<state width="1238" height="212" key="GridCell.Tab.0.right/0.0.1280.800@0.0.1280.800" timestamp="1606934825188" /> <state width="1238" height="212" key="GridCell.Tab.0.right/0.0.1280.800@0.0.1280.800" timestamp="1606935784049" />
<state width="1238" height="212" key="GridCell.Tab.0.right/0.25.1280.702@0.25.1280.702" timestamp="1606934333706" /> <state width="1238" height="212" key="GridCell.Tab.0.right/0.25.1280.702@0.25.1280.702" timestamp="1606934333706" />
<state width="1238" height="264" key="GridCell.Tab.1.bottom" timestamp="1606934171754"> <state width="1238" height="264" key="GridCell.Tab.1.bottom" timestamp="1606934171754">
<screen x="0" y="25" width="1280" height="702" /> <screen x="0" y="25" width="1280" height="702" />
@@ -254,10 +252,10 @@
<screen x="0" y="0" width="1280" height="800" /> <screen x="0" y="0" width="1280" height="800" />
</state> </state>
<state x="491" y="322" key="VCS.ChangelistChooser/0.0.1280.800@0.0.1280.800" timestamp="1604854207192" /> <state x="491" y="322" key="VCS.ChangelistChooser/0.0.1280.800@0.0.1280.800" timestamp="1604854207192" />
<state x="240" y="137" key="Vcs.Push.Dialog.v2" timestamp="1606767774291"> <state x="240" y="137" key="Vcs.Push.Dialog.v2" timestamp="1606935046790">
<screen x="0" y="0" width="1280" height="800" /> <screen x="0" y="0" width="1280" height="800" />
</state> </state>
<state x="240" y="137" key="Vcs.Push.Dialog.v2/0.0.1280.800@0.0.1280.800" timestamp="1606767774291" /> <state x="240" y="137" key="Vcs.Push.Dialog.v2/0.0.1280.800@0.0.1280.800" timestamp="1606935046790" />
<state x="546" y="264" key="com.intellij.docker.deployment.ui.DockerPortBindingsField.v173.dialogSize" timestamp="1606060189431"> <state x="546" y="264" key="com.intellij.docker.deployment.ui.DockerPortBindingsField.v173.dialogSize" timestamp="1606060189431">
<screen x="0" y="0" width="1280" height="800" /> <screen x="0" y="0" width="1280" height="800" />
</state> </state>

View File

@@ -1,5 +1,5 @@
application: musicserver application: musicserver
version: 2.0.2 version: 2.0.3
runtime: go115 runtime: go115
api_version: go1 api_version: go1

View File

@@ -1,8 +1,8 @@
openapi: 3.0.3 openapi: 3.0.3
info: info:
version: "2.0.2" version: "2.0.3"
title: "Music Server" title: "Music Server"
description: "Hopefully fixed the caching problem with random." description: "Another small change that should fix the caching problem."
contact: contact:
email: "zarnor91@gmail.com" email: "zarnor91@gmail.com"
servers: servers:

View File

@@ -263,7 +263,7 @@ func sendFile(writer http.ResponseWriter, request *http.Request, Filename string
FileSize := strconv.FormatInt(FileStat.Size(), 10) //Get file size as a string FileSize := strconv.FormatInt(FileStat.Size(), 10) //Get file size as a string
//Send the headers //Send the headers
writer.Header().Set("Content-Disposition", "attachment; filename="+Filename) //writer.Header().Set("Content-Disposition", "attachment; filename="+Filename)
writer.Header().Set("Content-Type", "audio/mpeg") writer.Header().Set("Content-Type", "audio/mpeg")
writer.Header().Set("Content-Length", FileSize) writer.Header().Set("Content-Length", FileSize)

View File

@@ -107,9 +107,13 @@ func indexHandler(w http.ResponseWriter, r *http.Request) {
testf() testf()
data := VersionData{Version: "2.0.2", data := VersionData{Version: "2.0.3",
Changelog: "Hopefully fixed the caching problem with random.", Changelog: "Another small change that should fix the caching problem.",
History: []VersionData{ History: []VersionData{
{
Version: "2.0.2",
Changelog: "Hopefully fixed the caching problem with random.",
},
{ {
Version: "2.0.1", Version: "2.0.1",
Changelog: "Fixed CORS", Changelog: "Fixed CORS",