From bddc905dbe55151a14271d58d8a6aa9615a9e8aa Mon Sep 17 00:00:00 2001 From: rafael-santiago Date: Sat, 7 Dec 2024 23:34:41 -0300 Subject: [PATCH] Update OVA download link in doc/VM-PT.md and doc/VM-EN.md --- doc/VM-EN.md | 2 +- doc/VM-PT.md | 2 +- src/internal/actions/action.go | 9 ++++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/doc/VM-EN.md b/doc/VM-EN.md index 2f1b858..70cae92 100644 --- a/doc/VM-EN.md +++ b/doc/VM-EN.md @@ -33,7 +33,7 @@ In order to create our `Eutherpe` `VM` (**V**irtual **M**achine) we will use the application. You will need to install `Virtualbox` in your system and once it done, we will create a virtual -machine based on an `OVA` that I previously prepared, available at [here](https://drive.google.com/file/d/1Fvnaj7w8l25p1QDk813KvmBKcEzmx40U/view?usp=drive_link). +machine based on an `OVA` that I previously prepared, available at [here](https://drive.google.com/file/d/1TcLtxBe_ahOcYIOyX43gt77IYjr0efsw/view?usp=drive_link). Done! If you have installed `Virtualbox` and downloaded the `OVA` you have already everyhing you need to continue. diff --git a/doc/VM-PT.md b/doc/VM-PT.md index b7ace2e..584f954 100644 --- a/doc/VM-PT.md +++ b/doc/VM-PT.md @@ -34,7 +34,7 @@ Para criar a nossa `VM` (**V**irtual **M**achine) `Eutherpe` vamos utilizar o ap Você vai precisar instalar o `Virtualbox` no seu computador e após feito isso, iremos criar uma máquina virtual baseada numa `OVA` que eu previamente preparei, disponível -[aqui](https://drive.google.com/file/d/1Fvnaj7w8l25p1QDk813KvmBKcEzmx40U/view?usp=drive_link). +[aqui](https://drive.google.com/file/d/1TcLtxBe_ahOcYIOyX43gt77IYjr0efsw/view?usp=drive_link). Pronto! Se você instalou o `Virtualbox` e baixou a `OVA` já tem tudo para ir adiante. diff --git a/src/internal/actions/action.go b/src/internal/actions/action.go index f3dad43..773aee1 100644 --- a/src/internal/actions/action.go +++ b/src/internal/actions/action.go @@ -241,7 +241,6 @@ func GetContentTypeByActionId(userData *url.Values) string { } func GetVDocByActionId(userData *url.Values, eutherpeVars *vars.EutherpeVars) string { - httpStatus := http.StatusNotFound switch userData.Get(vars.EutherpeActionId) { case vars.EutherpeMusicRemoveId, vars.EutherpeMusicMoveUpId, @@ -292,11 +291,11 @@ func GetVDocByActionId(userData *url.Values, eutherpeVars *vars.EutherpeVars) st vars.EutherpeSettingsPowerOffId, vars.EutherpeSettingsRebootId, vars.EutherpeSetCurrentConfigId: - httpStatus = http.StatusOK + eutherpeVars.HTTPd.ResponseWriter.WriteHeader(http.StatusOK) return eutherpeVars.HTTPd.IndexHTML case vars.EutherpeAuthenticateId: - httpStatus = http.StatusOK + eutherpeVars.HTTPd.ResponseWriter.WriteHeader(http.StatusOK) if eutherpeVars.LastError == nil { return "" } else { @@ -305,9 +304,9 @@ func GetVDocByActionId(userData *url.Values, eutherpeVars *vars.EutherpeVars) st break case vars.EutherpePlayerStatusId: - httpStatus = http.StatusOK + eutherpeVars.HTTPd.ResponseWriter.WriteHeader(http.StatusOK) return vars.EutherpeTemplateNeedlePlayerStatus } - eutherpeVars.HTTPd.ResponseWriter.WriteHeader(httpStatus) + eutherpeVars.HTTPd.ResponseWriter.WriteHeader(http.StatusNotFound) return eutherpeVars.HTTPd.ErrorHTML }