aboutsummaryrefslogtreecommitdiff
path: root/player/talking.f90
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2021-06-29 16:06:44 -0400
committerJeffrey Armstrong <jeff@approximatrix.com>2021-06-29 16:06:44 -0400
commitcd4a5891b8e2a019fdfda7512d6490e075628292 (patch)
tree8012dc7dc52f17632f5b429dea79709e55ab96c4 /player/talking.f90
parentd282a7e283a1704cdde2649c7caf130fb923051a (diff)
downloadlevitating-cd4a5891b8e2a019fdfda7512d6490e075628292.tar.gz
levitating-cd4a5891b8e2a019fdfda7512d6490e075628292.zip
Tokens are now checked for file uploads. Fixed major buffer bugs in status reporting.
Diffstat (limited to 'player/talking.f90')
-rw-r--r--player/talking.f905
1 files changed, 3 insertions, 2 deletions
diff --git a/player/talking.f90 b/player/talking.f90
index 42b6451..2171f41 100644
--- a/player/talking.f90
+++ b/player/talking.f90
@@ -94,6 +94,7 @@ contains
open(newunit=io, status="scratch", access='stream')
status_code = request_url(mod_url, io, return_type)
+ Print *, status_code
close(io)
deallocate(mod_url)
@@ -102,7 +103,7 @@ contains
function send_file(url, filename) result(status_code)
use gemini_protocol
- use config, only: token
+ use config, only: token, identity
implicit none
character(*), intent(in)::url
@@ -125,7 +126,7 @@ contains
access='STREAM', form='UNFORMATTED', iostat=istatus)
if(istatus == 0) then
- status_code = titan_post_url(mod_url, unit_number, file_size, token)
+ status_code = titan_post_url(mod_url, unit_number, file_size, trim(identity)//":"//trim(token))
close(unit_number)
else
status_code = STATUS_LOCALFAIL